﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Citi.RoutineBase;
using System.Diagnostics;

namespace Citi.BOExtraction.ConsoleUI
{
    public class CurrentAction : ICurrentAction
    {
        public string Description
        {
            set { Console.WriteLine(value); }
        }

        public void StartLog(string message)
        {

        }

        public void StartLogOnFile(string filePath)
        {

        }

        public void StopLog()
        {

        }

        public void StopLogOnFile()
        {

        }
    }

    class Program
    {
        static void Main(string[] args)
        {
            ICurrentAction currentAction = new CurrentAction();
            var parameters = new Dictionary<string, object>
            {
                {"RobotUserName", @"lac\lac_bra_Ftools"},
                {"RobotPassword", @"Ferrari3k10"},     
                {"ReportName", "APS Report ICG Tech e GFTS"},
                {"Url", "https://apss.nj.ssmb.com/siteminderagent/forms/login.fcc?TYPE=33554433&REALMOID=06-9dd78dc6-bead-1001-a1de-847a5366ff22&GUID=&SMAUTHREASON=0&METHOD=GET&SMAGENTNAME=-SM-M%2fFI%2fJct62hg9ARQUNZpbk3dDmeJMh93fpicXdqeYR%2bfmGyk1sTdUsGNAF%2bvMLP2Et6OHMvmZTq%2fm%2fwAIT6nNjfloybviYIO&TARGET=-SM-%2findex%2ehtml"},
                {"UserLogin", "LD41319"},
                {"PathToSave", @"C:\temp\aps.xlsx"},
                {"JoinSheets", false},
                {"NewSheetName", @"Report Detailed"},
                {"BOUrl", "https://ipboprg.wlb2.nam.nsroot.net:10321/bobjpsenterprise/jsp/ContextualAwareness/initURE.jsp?infoview=https://ipboprg.wlb2.nam.nsroot.net:10321/PartnerPlatformService/service/app/logon.object&vendor=PEOPLESOFT&cms=corpbo120p.nam.nsroot.net:10370&auth=secpsenterprise&domain=capfprg&UserID=LD41319&UnvName=APS_ReportingView&hierPeriod=188&token=AAAAqQECAwQAAQAAAAACvAAAAAAAAAAsAARTaGRyAgBOdQgAOAAuADEAMBSgtUhxFwCS1ubSkRjPSucJgG8ibgAAAGkABVNkYXRhXXicFYw7CoAwEAUnKpZWXkNJNBBTip80IuIFPIW383C+7DKzxVse8JqirDBoii+74WDF4xhFrNk4SS0LiUeeudjFTfIMWD15Ot0oO222pVc2yF412UFMSgI/rXkMAQ==||https://ipboprg.wlb2.nam.nsroot.net:10321/InfoViewApp/listing/main.do?appKind=InfoView&service=%2FInfoViewApp%2Fcommn%2FappService.do&initialFolderId=4953851"}
            };

            new SchedulerUI.Extraction().Start(DateTime.Today, ref currentAction, parameters);
        }
    }
}
